 var font=document.querySelector('.container')
    var font2=document.querySelector('.container2')
    var yanyu=document.querySelectorAll('.yanyu')
    var xinwen2=document.querySelector('.xinwen2')
    var yuyankepu=document.querySelector('.yuyankepu')
    var xiala=document.querySelector('#xiala')
    var xiala2=document.querySelector('#xiala2')
    var section=document.querySelector('section')
    var nav=document.querySelector('.nav')
    var white=document.querySelector('.white-1')
    var yuyue=document.querySelector('.yuyue')
    var c1=document.querySelectorAll('.c1')
    var c2=document.querySelector('.c2')
    var shouye=document.querySelector('.shouye')
    var a=0;
    console.log(yanyu)
    yanyu[2].onclick = function()
    {
        yuyankepu.style.visibility='hidden'
        xinwen.style.visibility='visible'
    }
    yanyu[3].onclick = function()
    {
        yuyankepu.style.visibility='visible'
        xinwen.style.visibility='hidden'
    }
    document.body.style.setProperty('--font',font.offsetWidth)
    console.log(font.offsetWidth)
    xiala.onclick = function(e)
    {
        e.stopPropagation()
        // white.classList.toggle('kai')
        // font.classList.toggle('opc')
        if(!a)
    {
        white.style.display='block'
        font.style.opacity="0.8"
        a=1;
    }
        else
    {
        white.style.display='none'
        font.style.opacity="1"
        a=0;
    }
    }
    yuyue.onclick = function()
    {
        // font.style.visibility='hidden';
        font2.style.display='block'
            for(var i=0;i<c1.length;i++)
    {
        c1[i].style.visibility='hidden'
    }
    }
    for (var i = 0; i < obj.length; i++) {
    var li=document.createElement('li');
    var h3=document.createElement('h3');
    h3.innerText=obj[i].gy
    li.appendChild(h3)
    for(var k=0;k<obj[i].gyitem.length;k++)
{
    var p=document.createElement('p')
    var as=document.createElement('a')
    as.style.color='#3399FF'
    as.className='a--top'
    as.innerText=obj[i].gyitem[k]
    p.appendChild(as)
    p.classList.add('p-margin')
    li.appendChild(p)
    white.appendChild(li)
}
}
    shouye.onclick=function()
    {
        font2.style.display='none'
            for(var i=0;i<c1.length;i++)
    {
        c1[i].style.visibility='visible'
    }
    }

    var mySwiper = new Swiper ('.swiper', {
    // direction: 'vertical', // 垂直切换选项
    loop: true, // 循环模式选项
    // effect:'cube',
    autoplay:true
})
    document.body.onclick = function(e)
    {
        e.stopPropagation()
        white.style.display='none'
        font.style.opacity='1'
        font.style.backgroundColor='white'
    }

    var skk=document.querySelectorAll('.a--top')
 skk[0].href='../href/jianjie.html'
 skk[1].href='../href/dashiji.html'
 skk[2].href='../href/zhuanjia.html'
 skk[4].href='../href/etyyfw.html'
 skk[3].href='../href/etyyfz.html'
 skk[5].href='../href/cryyfw.html'
 skk[6].href='../href/allkechen.html'
 skk[7].href='../href/allkechen.html'
 skk[8].href='../href/xinwenzixun.html'
 skk[9].href='../href/yanyukepu.html'
 skk[10].href='../href/newhuodon.html'
 skk[11].href='../href/lianxiwom.html'
 skk[12].href='../href/jiaruwom.html'
 skk[13].href='../href/zhonxindizhi.html'
 skk[14].href='../href/anli.html'
 // skk[0].style
